import {createRouter, createWebHistory} from "vue-router";

export const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: "/login",
            name: "登录",
            component: () => import("@/views/login.vue"),
        },
        {
            path: "/register",
            name: "注册账号",
            component: () => import("@/views/register.vue"),
        },
        {
            path: "/forget",
            name: "找回密码",
            component: () => import("@/views/forget.vue"),
        },
        {
            path: "/",
            name: "Index",
            component: () => import("@/views/index.vue"),
            children: [],
        },
    ],
});
